"""
@author: 江同学呀
@file: index_lifecycle_management.py
@date: 2024/11/24 15:58
@desc: 
"""


class ILMSetting:
    """
    These are the settings available for configuring index lifecycle management (ILM).
    这些是可用于配置索引生命周期管理 （ILM） 的设置。
    """
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        return


class ClusterLevelSetting(ILMSetting):
    """
    集群级别设置
    :param xpack_ilm_enabled:
        (Static, Boolean) [7.8.0]Deprecated in 7.8.0. Basic License features are always enabled
        This deprecated setting has no effect and will be removed in Elasticsearch 8.0.
        （静态、布尔值） [7.8.0]在 7.8.0 中已废弃。基本许可证功能始终处于启用状态
        此已弃用的设置无效，将在 Elasticsearch 8.0 中删除。
    """
    def __init__(self, xpack_ilm_enabled: bool = None, **kwargs):
        super().__init__(**kwargs)
        self._xpack_ilm_enabled: bool = xpack_ilm_enabled
        return

